package com.ruoyi.system.domain;

import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件管理对象 filedata
 *
 * @author ruoyi
 * @date 2023-08-23
 */
public class Filedata extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 二进制
     */
    @Excel(name = "二进制")
    private byte[] data;

    /**
     * 文件类型
     */
    @Excel(name = "文件类型")
    private String type;

    /**
     * 描述
     */
    @Excel(name = "描述")
    private String descp;

    /**
     * 对应知识库表id
     */
    @Excel(name = "对应知识库表id")
    private Long kid;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 部门id
     */
    @Excel(name = "部门id")
    private Long deptId;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String fileUrl;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String fileName;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String fileNewfilename;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String fileOriginalfilename;

    /**
     * knowledgepool信息
     */
    private List<Knowledgepool> knowledgepoolList;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

    public byte[] getData() {
        return data;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setDescp(String descp) {
        this.descp = descp;
    }

    public String getDescp() {
        return descp;
    }

    public void setKid(Long kid) {
        this.kid = kid;
    }

    public Long getKid() {
        return kid;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileNewfilename(String fileNewfilename) {
        this.fileNewfilename = fileNewfilename;
    }

    public String getFileNewfilename() {
        return fileNewfilename;
    }

    public void setFileOriginalfilename(String fileOriginalfilename) {
        this.fileOriginalfilename = fileOriginalfilename;
    }

    public String getFileOriginalfilename() {
        return fileOriginalfilename;
    }

    public List<Knowledgepool> getKnowledgepoolList() {
        return knowledgepoolList;
    }

    public void setKnowledgepoolList(List<Knowledgepool> knowledgepoolList) {
        this.knowledgepoolList = knowledgepoolList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("data", getData())
                .append("type", getType())
                .append("descp", getDescp())
                .append("kid", getKid())
                .append("userId", getUserId())
                .append("deptId", getDeptId())
                .append("fileUrl", getFileUrl())
                .append("fileName", getFileName())
                .append("fileNewfilename", getFileNewfilename())
                .append("fileOriginalfilename", getFileOriginalfilename())
                .append("knowledgepoolList", getKnowledgepoolList())
                .toString();
    }
}
